#include <stdio.h>
#include <stdlib.h>
const int arraySize = 10;
void printArray(int * a)
{
  int index;
  for (index = 0; index < arraySize; index ++)
    { printf("%d ", a[index]); }
  printf("\n");
}
void f(int * * a)
{
  * a = malloc(arraySize * sizeof(int));
}
int main(int argc, char * argv[])
{
  int * x;
  f(& x);
  int index;
  for (index = 0; index < arraySize; index ++)
    {  x[index] = index * 10; }
  printArray(x);
  free (x);
  return 0;
}
